package com.yaolonga.itfc.manager.core.exception;

import lombok.Getter;

/**
 * @Author: yaolong
 * @CreateTime: 2024-10-24  16:40
 * @Description: 验证异常
 * @Version: 1.0
 */
@Getter
public class ValidateException extends RuntimeException {
    private final String message;

    public ValidateException(String message) {
        super(message);
        this.message = message;
    }

    public ValidateException(Throwable e) {
        super(e.getMessage(), e);
        this.message = e.getMessage();
    }

    public ValidateException(String message, Throwable e) {
        super(message, e);
        this.message = e.getMessage();
    }

}
